package com.csxy.systemmanager.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.csxy.systemmanager.utils.LongJsonDeserializer;
import com.csxy.systemmanager.utils.LongJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 * (Good)表实体类
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString
@TableName("suppliers")
public class Supplier implements Serializable {

    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    @TableId(type = IdType.AUTO)
    private Long supplierId;

    private String supplierName;

    private String contactPerson;

    private String contactPhone;

    private String address;

    private String email;

}

